<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Api extends Authenticatable
{
    //表名
    protected $table = 'users';

    //指定主键
    protected $primaryKey = 'id';

    //指定允许批量赋值的字段

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'openid', 'avatar', 'nickname','time',
    ];
}
